import { postAxios, getAxios, postDownloadAxios } from '@/lib/http';

export const gearboxEfficiencyApi = {
    // 添加变速箱效率MAP @author wuhq
    addGearboxEfficiency: (data) => {
        return postAxios('/gearboxEfficiency/add', data);
    },
    // 分页查询变速箱效率MAP @author wuhq
    queryGearboxEfficiency: (data) => {
        return postAxios('/gearboxEfficiency/page/query', data);
    },
    // 批量删除变速箱效率MAP @author wuhq
    batchDeleteGearboxEfficiency: (idList) => {
        return postAxios('/gearboxEfficiency/deleteByIds', idList);
    },
    // 修改变速箱效率MAP  @author wuhq
    updateGearboxEfficiency: (data) => {
        return postAxios('/gearboxEfficiency/update',data);
    },
    // 导出全部  @author wuhq
    exportAll:(data)=>{
        return postDownloadAxios('/gearboxEfficiency/export/all',data);
    },
    // 批量导出  @author wuhq
    batchExport: (idList) => {
        return postDownloadAxios('/gearboxEfficiency/export/batch', idList);
    },
  getByGearboxId: (id) => {
      return getAxios(`/gearboxEfficiency/getByGearboxId/${id}`);
    },
};
